It is therefore intended exclusively for users of the AutoIt programming language who intend to extract such information from
any AutoIt scripts.
In the script name, reference is made with
AI to AutoIt,
Var to variables,
Ref to reference in the original sense of (German) referieren = to give a summary, a report.
The results generated by the script are bilingual. The switch is made in line 8 of the script:
Global $Deutsch = True → German
Global $Deutsch = False → English.
The script assumes that the following option was selected at the beginning of the script to be examined:
AutoItSetOption("MustDeclareVars", 1)
If this option was not selected, variables can be created without being explicitly declared. AIVarRef would be able to recognise such
variables, but not their declaration status.
The file AIVarRef.html, which is included in the ZIP package, is automatically loaded by AIVarRef and modified for the
purpose of later viewing and information retrieval and is then to be saved (under a different name!) and examined via browser.
If the script AIVarRef.au3 is started with AutoIt, it must be located in the directory of the AutoIt start programme or, if the
script is compiled by the user, in the directory of AIVarRef_X**.exe.
Those who want information about a specific variable can find it in the browser by pressing Ctrl-F. And who is interested in
variable problems in the script code, is recommended to search in the browser for information with a light red background for minor or a
dark red background for more serious issues is recommended, alternatively, the use of the Ctrl-F text search to look for '(!)' for minor or
'(!+)' for more serious issues.
The first column, ‘type’, contains the abbreviated declaration type of the variable or constant.
Declaration types of global variables:
– = no declaration
G = Global in the main script
G-F = Global in a function
L-m = Local in the main script
D = Dim in the main script
C = Const in the main script
E = Enum in the main script
S-m = Select in the main script
All letter combinations indicate problematic declarations.
Declaration types of local variables in functions:
F = Local in the function header
L = Local
D = Dim
C = Const
E = Enum
S = Select
Variables or constants that have not been declared in the script and are therefore presumed to originate from ‘#include’ files are
commented out with 'no declaration (from “include” file?)'. Greater clarity can be achieved by first processing the script using the
AU3Stripper.exe programme, which inserts variable and constant declarations from ‘include’ files into the script. Following subsequent
processing with AIVarRef, declarations for these variables or constants are usually recorded.
As an example, reference is made to the HTML files generated by AIVarRef